export default new VueRouter({
    mode:"history",
    routes: [
      {
        path:'/login',
        name:"login",
        component: ()=>import("../views/Login.vue")
      },
      {
        path:'/404',
        name:"notfound",
        component: ()=>import("../views/NotFound.vue")
      },
      {
        path:'*',
        redirect:"/404"
      },
      {
        path:'/',
        redirect:"/home"
      },
      {
        path: '/',
        name:"index",
        component:()=>import("../views/Index.vue"),
        children:[
          {
            path:'/home',
            name:"home",
            component: ()=>import("../views/home/Home.vue"),
            meta: { title: '首页' }
          },
          {
            path: '/playerinfo',
            name:"playerinfo",
            component:()=>import("../views/player/PlayerInfo.vue"),
            meta: { title: '玩家信息' }
          },
          {
            path: '/noviceguide',
            name:"noviceguide",
            component:()=>import("../views/player/Noviceguide.vue"),
            meta: { title: '新手引导' }
          },
          {
            path: '/playerPoints',
            name:"playerPoints",
            component:()=>import("../views/player/PlayerPoints.vue"),
            meta: { title: '玩家积分' }
          },
          {
            path:'/playerecharge',
            name:"playerecharge",
            component:()=>import("../views/player/PlayerRecharge.vue"),
            meta: { title: '充值分布' }
          },
          {
            path:'/recharge',
            name:"recharge",
            component:()=>import("../views/role/Recharge.vue"),
            meta: { title: '充值查询' }
          },
          {
            path:'/hangup',
            name:"hangup",
            component:()=>import("../views/role/HangUp.vue"),
            meta: { title: '挂机关卡' }
          },
          {
            path:'/rolezr',
            name:"rolezr",
            component:()=>import("../views/role/RoleZR.vue"),
            meta: { title: '角色阵容' }
          },
          {
            path:'/rolegift',
            name:"rolegift",
            component:()=>import("../views/role/RoleGift.vue"),
            meta: { title: '物品流水' }
          },
          {
            path:'/gift',
            name:"gift",
            component:()=>import("../views/payment/Gift.vue"),
            meta: { title: '礼包统计' }
          },        
          {
            path:'/gearecharge',
            name:"gearecharge",
            component:()=>import("../views/payment/Gearecharge.vue"),
            meta: { title: '档位充值' }
          },
          {
            path:'/lottery',
            name:"lottery",
            component:()=>import("../views/payment/Lottery.vue"),
            meta: { title: '抽卡统计' }
          },
          {
            path:'/race',
            name:"race",
            component:()=>import("../views/payment/Race.vue"),
            meta: { title: '种族抽' }
          },
          {
            path:'/shopbuy',
            name:"shopbuy",
            component:()=>import("../views/payment/ShopBuy.vue"),
            meta: { title: '商城购买' }
          },
          {
            path:'/feeroleph',
            name:"feeroleph",
            component:()=>import("../views/payment/FeeRolePh.vue"),
            meta: { title: '付费排行' }
          },
          {
            path:'/retention',
            name:"retention",
            component:()=>import("../views/retention/Retention.vue"),
            meta: { title: '留存率' }
          },         
          {
            path:'/activecode',
            name:"activecode",
            component:()=>import("../views/activecode/ActiveCode.vue"),
            meta: { title: '激活码' }
          },
          {
            path:'/notice',
            name:"notice",
            component:()=>import("../views/gmtool/Notice.vue"),
            meta: { title: '公告' }
          },
          {
            path:'/pmd',
            name:"pmd",
            component:()=>import("../views/gmtool/Notice.vue"),
            meta: { title: '跑马灯' }
          },
          {
            path:'/mail',
            name:"mail",
            component:()=>import("../views/gmtool/Mail.vue"),
            meta: { title: '邮件' }
          },
          {
            path:'/ban',
            name:"ban",
            component:()=>import("../views/gmtool/Ban.vue"),
            meta: { title: '封禁' }
          },
          {
            path:'/propdel',
            name:"propdel",
            component:()=>import("../views/gmtool/PropDel.vue"),
            meta: { title: '道具删除' }
          },
          {
            path:'/configserver',
            name:"configserver",
            component:()=>import("../views/gmtool/ConfigServer.vue"),
            meta: { title: '服务器' }
          },
          {
            path:'/exchangecode',
            name:"exchangecode",
            component:()=>import("../views/gmtool/ExchangeCode.vue"),
            meta: { title: '兑换码' }
          },
          {
            path:'/servergroup',
            name:"servergroup",
            component:()=>import("../views/gmtool/ServerGroup.vue"),
            meta: { title: '服务器组' }
          },
          {
            path:'/dragonph',
            name:"dragonph",
            component:()=>import("../views/dragonph/DragonPh.vue"),
            meta: { title: '龙平衡' }
          }
        ]
     }
  ]
})